/**
 * 
 */
package com.ideeli.webextractor.exe;

import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;

import com.ideeli.webextractor.context.WebExatractorContext;
import com.ideeli.webextractor.service.IngExtractorService;
import com.ideeli.webextractor.service.SISParser;

/**
 * @author spaida
 *
 */
public class SISExtractor {
	
	private static final Logger logger = Logger.getLogger(SISExtractor.class);

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	ApplicationContext context =WebExatractorContext.getApplicationContext();
		
		logger.info("Context initialized...");
		SISParser sisParser=context.getBean("sisparser",SISParser.class);
	
		long startTime=System.currentTimeMillis();
		logger.warn("startTime : "+startTime);
		
		sisParser.process("S:\\SIS1.xlsx");
		
		long endTime=System.currentTimeMillis();
		logger.warn("endTime : "+endTime);
		
		
		logger.warn("Total time : "+((endTime-startTime)/1000)/60 + " minutes");
	}

}
